import unittest

from htmltestreport import HTMLTestReport

if __name__ == '__main__':
    # 2. 生成测试套件
    suite = unittest.defaultTestLoader.discover('script', 'test*')

    # 3. 实例化HTMLTestReport对象
    report = HTMLTestReport('report/report.html', title="传智健康测试报告", description="V1.0")

    # 4. 执行测试套件
    report.run(suite)